﻿using MiniFox;
using MiniFox.Infrastructure;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Sys.Core.Models.VO
{
    [Table("signinlog")]
    public class SigninLogVo
    {
        [Display(Name = "票据编号", ShortName = "票据编号"), JsonProperty("ticketId"), Column("ticketId")]
        public string TicketID { get; set; }
        [Display(Name = "用户登录名", ShortName = "用户登录名"), JsonProperty("loginName"), Column("loginName")]
        public string LoginName { get; set; }
        [Display(Name = "邮箱", ShortName = "邮箱"), JsonProperty("secEmail"), Column("secEmail")]
        public string SecEmail { get; set; }
        [Display(Name = "手机号", ShortName = "手机号"), JsonProperty("cellphone"), Column("cellphone")]
        public string Cellphone { get; set; }
        [Display(Name = "客户端IP", ShortName = "客户端IP"), JsonProperty("clientIp"), Column("clientIp")]
        public string IPAddress { get; set; }
        [Display(Name = "用户", ShortName = "用户"), JsonProperty("displayName"), Column("displayName")]
        public string DisplayName { get; set; }

        [Display(Name = "登录时间", ShortName = "登录时间"), JsonProperty("signInTime"), Column("signInTime")]
        public DateTime SignInTime { get; set; }

        [Display(Name = "注销时间", ShortName = "注销时间"), JsonProperty("signOutTime"), Column("signOutTime")]
        public DateTime? SignOutTime { get; set; }
    }
}
